package com.growthgate.bootcommon.entity;

import com.growthgate.bootcommon.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;

import javax.persistence.Entity;
import java.io.Serializable;
import java.util.Date;

/**
 * 水果
 *
 * @author GrowthGate
 * @date 2020/3/3
 */
@Data
@Entity
@ApiModel
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class Fruit extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -6070980798277647806L;

    @ApiModelProperty("id")
    private Long id;

    @CreatedDate
    @ApiModelProperty("创建时间")
    private Date createTime;

    @LastModifiedDate
    @ApiModelProperty("修改时间")
    private Date updateTime;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String name;

}